package com.zhong.subject.application.convert;

import com.zhong.subject.application.dto.SubjectInfoDTO;
import com.zhong.subject.domain.bo.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper //此注解为mapstruct包下的
public interface SubjectInfoDTOConverter {
    SubjectInfoDTOConverter INSTANCE = Mappers.getMapper(SubjectInfoDTOConverter.class);
    SubjectInfoBO convertDTOToBO(SubjectInfoDTO subjectInfoDTO);

    SubjectInfoDTO convertBoToDTO(SubjectInfoBO subjectInfoBO);
    List<SubjectInfoBO> convertBoListToDTOList(List<SubjectInfoDTO> subjectInfoDTOList);
}
